package vaccine.appointment.system.vaccinationsite.vo;

import lombok.Data;
import vaccine.appointment.system.common.validation.PhoneNumber;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 更新接种点请求
 */
@Data
public class UpdateVaccinationSiteRequest {
    /**
     * 接种点名称
     */
    @NotBlank(message = "接种点名称不能为空")
    @Size(max = 100, message = "接种点名称长度不能超过100个字符")
    private String name;

    /**
     * 接种点地址
     */
    @NotBlank(message = "接种点地址不能为空")
    @Size(max = 200, message = "接种点地址长度不能超过200个字符")
    private String address;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空")
    @PhoneNumber(message = "联系电话格式不正确")
    private String phoneNum;
}

